/**
* 版权声明：厦门睿商网络科技有限公司 版权所有 违者必究
* 日    期：2020-03-25
*/
package com.rzico.basics.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;

/**
 * <pre>
 *   优惠券数据库对象
 * </pre>
 * @author Rzico Boot
 * @version 1.0
 */
@Data
@JsonIgnoreProperties(value = {"handler"})
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CouponCodeVo {

    @Id
    @ApiModelProperty(value = "" )
    protected Long id;

    @ApiModelProperty(value = "券id" )
    protected Long couponId;

    @ApiModelProperty(value = "券名称" )
    protected String name;

    @ApiModelProperty(value = "使用规则" )
    protected String introduction;

    @ApiModelProperty(value = "优惠金额/折扣" )
    protected java.math.BigDecimal amount;

    @ApiModelProperty(value = "可用数量" )
    protected Long stock;

    @ApiModelProperty(value = "使用起始日期" )
    protected java.util.Date beginDate;

    @ApiModelProperty(value = "使用结束日期" )
    protected java.util.Date endDate;

    @ApiModelProperty(value = "使用条件(满额)" )
    protected java.math.BigDecimal minimumPrice;

    @ApiModelProperty(value = "使用范围 {0:全场,1:店内,2:商城}" )
    protected Integer scope;

    @ApiModelProperty(value = "优惠方式 {0:满减券,1:折扣券,3.兑换券}" )
    protected Integer type;

    @ApiModelProperty(value = "券类型 {0通用券,1:品牌券,2:会员券,3:分类券,4.商品券,5.兑换券}" )
    protected Integer targetType;

    @ApiModelProperty(value = "兑换商品id" )
    protected Long productId;

    @ApiModelProperty(value = "指定可兑换商品" )
    protected String productName;

    @ApiModelProperty(value = "指定可兑换商品图" )
    protected String productThumbnail;

    @ApiModelProperty(value = "商户Logo" )
    protected String mchLogo;

    @ApiModelProperty(value = "商户名称" )
    protected String mchName;

}
